package com.daidai.spinner

import game.engine.base.Mat2x3
import game.engine.base.Mat3
import game.engine.base.debug_string
import org.junit.Test

class Test_Mat {

    @Test
    fun test_math(){
        val mat2d = Mat2x3()
        mat2d.loadTRS(100f,71f,60f,1.3f,2.1f)
        mat2d.inverse()
        println(mat2d.debug_string())

        //mat3
        val mat3 = Mat3()
        mat3.loadTRS(100f,71f,60f,1.3f,2.1f)
        mat3.inverse()
        println(mat3.debug_string())
    }

    @Test
    fun test_sqrt(){
        println( Math.sqrt( -99.00))
    }
}